package com.atguigu.spring.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Student {

    private Integer stuId;
    private String stuName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date stuBirthday;

    private Address address;

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public Date getStuBirthday() {
        return stuBirthday;
    }

    public void setStuBirthday(Date stuBirthday) {
        this.stuBirthday = stuBirthday;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuId=" + stuId +
                ", stuName='" + stuName + '\'' +
                ", stuBirthday=" + stuBirthday +
                ", address=" + address +
                '}';
    }

    public Student(Integer stuId, String stuName, Date stuBirthday) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuBirthday = stuBirthday;
    }

    public Student() {
    }
}
